package com.chenliang.testfilter.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: springboot-filter
 * @description:
 * @author: chenLiang
 * @create: 2022-08-04 16:30
 */
@Configuration
public class Filter01Config {


    @Bean
    public FilterRegistrationBean<Filter01> registerFilter01() {
        FilterRegistrationBean<Filter01> bean = new FilterRegistrationBean<>();
        bean.setFilter(new Filter01());
        bean.setOrder(12);
        bean.setName("filter01");
        return bean;
    }

}
